package pro.cherish.knowledgeumldesignpattern.designPattern.com.cherish.builder;

//可以和单例模式与工厂模式结合起来
public class CherishAirShipBuilder implements AirShipBuilder {

    @Override
    public Engine buildEngine() {
        System.out.println("构建cherish发动机");
        return new Engine("构建cherish发动机");
    }

    @Override
    public OrbitalModel buildOrbitalModel() {
        System.out.println("构建cherish轨道仓");
        return new OrbitalModel("构建cherish轨道仓");
    }

    @Override
    public EsCape buildEsCape() {
        System.out.println("构建cherish逃逸塔");
        return new EsCape("构建cherish逃逸塔");
    }
}
